package com.pig4cloud.pig.zhang.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pig4cloud.pig.zhang.entity.WzArticle;
import com.pig4cloud.pig.zhang.mapper.WzArticleMapper;
import com.pig4cloud.pig.zhang.service.WzArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
 * 文章管理表
 *
 * @author pig
 * @date 2025-07-24 08:35:55
 */
@Service
public class WzArticleServiceImpl extends ServiceImpl<WzArticleMapper, WzArticle> implements WzArticleService {

	@Autowired
	private WzArticleMapper wzArticleMapper;
	@Override
	public IPage<WzArticle> pageArticles(Page<WzArticle> page, WzArticle wzArticle) {
		return wzArticleMapper.listArticles(page,
				wzArticle.getColumnId(),wzArticle.getState(),wzArticle.getTitle());
	}
}
